package main

import "fmt"

/**
 * @Description
 * @Author huran
 * @Date
 * @Param
 * @return
 **/
func Slice() {
	a1 := []int{4, 5, 6}
	fmt.Printf("a1:%v,len=%d,cap=%d\n", a1, len(a1), cap(a1))
	a2 := []int{4, 5}
	fmt.Printf("a2:%v,len=%d,cap=%d\n", a2, len(a2), cap(a2))
	a3 := []int{}
	fmt.Printf("a3:%v,len=%d,cap=%d\n", a3, len(a3), cap(a3))

	s3 := make([]int, 0, 4)
	s4 := append(s3, 1)
	fmt.Printf("s4:%v,len=%d,cap=%d\n", s4, len(s4), cap(s4))

}
